package com.hjs.mapper;

import com.hjs.bean.MaintenanceLevel;
import com.hjs.bean.RoadType;

import java.util.List;

/**
 * 道路类型相关操作
 *
 * @author violetfreesia
 * @date 2020/06/17
 */
public interface RoadTypeMapper {
    boolean addOneRoadType(RoadType obj);

    boolean addOneMaintenanceLevel(MaintenanceLevel obj);


    boolean deleteOneRoadTypeById(int id);

    boolean deleteOneMaintenanceLevelById(int id);

    boolean updateOneRoadType(RoadType obj);

    boolean updateOneMaintenanceLevel(MaintenanceLevel obj);

    RoadType getOneRoadTypeById(int id);

    MaintenanceLevel getOneMaintenanceLevelById(int id);

    List<RoadType> getALlRoadType();

    List<MaintenanceLevel> getALlMaintenanceLevel();

    RoadType getRoadTypeByRoadWayId(int id);
}
